class MessageBean {
  message: string;
  createTime: string;
  constructor(message: string, createTime: string) {
    this.message = message;
    this.createTime = createTime;
  }
  static fromJson(json: Record<string, any>): MessageBean {
    return new MessageBean(json.message, json.createTime);
  }

  toJson(): Record<string, any> {
    return {
      message: this.message,
      createTime: this.createTime,
    };
  }
}

export { MessageBean };
